package xian.woniuxy.zh_generic.c;

/*
    需求：定义一个类，其中必须有两个属性，两个属性的类型必须一致，具体是什么类型无所谓！
 */
class Foo<T> {
    private T a;
    private T b;

    public T getA() {
        return a;
    }

    public void setA(T a) {
        this.a = a;
    }

    public T getB() {
        return b;
    }

    public void setB(T b) {
        this.b = b;
    }
}

class Bar<T, S> {
    private T first;
    private S second;

    public T getFirst() {
        return first;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public S getSecond() {
        return second;
    }

    public void setSecond(S second) {
        this.second = second;
    }
}

interface I<T> {
    T f1();
}

public class App {
    public static void main(String[] args) {
        Foo<Integer> foo = new Foo<>();
        Bar<Integer, String> bar = new Bar<>();

    
    }
}
